<?php echo form_open('commodities/update'); ?>

  <?php foreach($result as $row) { ?>
	<p>CID: <input type="text" name="id" id="id" value="<?php echo $row->id; ?>"></p>
	<p>Name: <input type="text" name="name" id="name" value="<?php echo $row->name; ?>"></p>
	<p>Base Price: <input type="text" name="base_price" id="base_price" value="<?php echo $row->base_price; ?>"></p>
	<p><?php echo form_submit('update','Update'); ?></p>
   <?php } ?>
	<?php echo form_close(); ?>
	<?php echo validation_errors(); ?>